<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css" />
<title>YOKI 客户端安装</title>
<script type="text/javascript">
//判断访问终端 备用
var browser={
    versions:function(){
        var u = navigator.userAgent, app = navigator.appVersion;
        return {
            trident: u.indexOf('Trident') > -1, //IE内核
            presto: u.indexOf('Presto') > -1, //opera内核
            webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
            gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,//火狐内核
            mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
            ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
            android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
            iPhone: u.indexOf('iPhone') > -1 , //是否为iPhone或者QQHD浏览器
            iPad: u.indexOf('iPad') > -1, //是否iPad
            webApp: u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部
            weixin: u.indexOf('MicroMessenger') > -1, //是否微信 （2015-01-22新增）
            qq: u.match(/\sQQ/i) == " qq" //是否QQ
        };
    }(),
    language:(navigator.browserLanguage || navigator.language).toLowerCase()
}
</script>
<!-- 统计工具 end-->
<script type="text/javascript">
	function myfunction() {
		var ua = navigator.userAgent.toLowerCase();
		
		var u = navigator.userAgent, app = navigator.appVersion;
		var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
		var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
		var href="";
		/* if(ua.indexOf("micromessenger") == -1){
			document.getElementById("bbq").src = "images/weixin/download_pic_b.png";
		} */
		if (isiOS) {
			href = "https://itunes.apple.com/cn/app/you-jiyoki-yokivoice-lu-xingapp/id1080671878";
			if (/iphone os 8_/.test(ua)){
				href = "https://itunes.apple.com/cn/app/you-jiyoki-yokivoice-lu-xingapp/id1080671878";
			}
			if(ua.indexOf("qq") > 0){
				href="";
			} 	
		} else if (isAndroid) {
			if(ua.indexOf("micromessenger") > 0 ){
				href = "";
			}
			else if(ua.indexOf("mqqbrowser") > 0 ){
				href = 'http://www.yokivoice.com/yoki.apk';
			}
			else if(ua.indexOf("qq") > 0 ){
				href = "";
			}
			else {
				href = 'http://www.yokivoice.com/yoki.apk';				
			}
		} else if (/windows phone|blackberry/.test(ua)) {
			alert('抱歉，暂不支持您的系统');
			href = '';
		} else {
			alert('请使用移动设备扫描二维码下载');
			href = '';
		}
		if (href!="") location.href=href;
	}
</script>	
	
	<style type="text/css">
    
    .arror {
   		float: right;
        padding-right: 10px;
    }
    
    .bg{
        width:100%;
        height:100%;
        max-width: 100%;
    }
    
    .bg img {
    	max-width: 100% !important;
    	height: auto !important;
    	clear: both; 
		display: block; 
		margin:auto;
    }
    
    body{ text-align: center; }
	html{ height:100%;width:100%; }
    body{ width:100%; height:100%; background-color: #F0EFF5; }
    
    a{
       display:none;
    }
</style>
</head>
<body onload="myfunction()">
	<div class="bg">
		<img id="bbq" src="images/weixin/web download small.png" style="width:100%;max-width: 100%;"/>
	</div>
</body>
</html>
